﻿@foreach (var prop in ViewData.ModelMetadata.Properties
                  .Where(pm => pm.ShowForEdit && !pm.ModelType.IsAbstract && !ViewData.TemplateInfo.Visited(pm)))
{
    <div class="form-group">
       
                @Html.Label(prop.DisplayName)
                @(prop.IsRequired ? "*" : "")
       
            <div>
                @Html.Editor(prop.PropertyName, prop.DataTypeName,null,null)
                @prop.Description
            </div>
        
    </div>
}